using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Diagnostics;

namespace NativeWiFiLibrary
{
    public class WlanException : Exception
    {
        private string methodName;
        private uint errorCode;

        public WlanException(uint errorCode)
            : base(string.Format(ErrorMessages.WlanExceptionMessage, (new StackFrame(1)).GetMethod().Name, errorCode), new Win32Exception((int)errorCode))
        {
            this.methodName = (new StackFrame(1)).GetMethod().Name;
            this.errorCode  = errorCode;
        }
    }
}
